<template>
  <footer class="footer">
    <div class="footer-content">
      <!-- 品牌信息区域 -->
      <div class="footer-section brand-section">
        <h3 class="footer-title">校园冒险者公会</h3>
        <p class="footer-desc">
          连接学生、公会与佣兵团的创新平台，让校园生活成为一场精彩冒险。
        </p>
        <div class="social-links">
          <a href="#" class="social-link"><i class="fab fa-weixin"></i></a>
          <a href="#" class="social-link"><i class="fab fa-qq"></i></a>
          <a href="#" class="social-link"><i class="fab fa-weibo"></i></a>
          <a href="#" class="social-link"><i class="fab fa-github"></i></a>
        </div>
      </div>

      <!-- 快速链接区域 -->
      <div class="footer-section">
        <h4 class="section-title">快速链接</h4>
        <div class="vertical-links">
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 任务大厅</a>
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 公会列表</a>
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 佣兵团</a>
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 成就系统</a>
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 排行榜</a>
        </div>
      </div>

      <!-- 资源区域 -->
      <div class="footer-section">
        <h4 class="section-title">资源</h4>
        <div class="vertical-links">
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 帮助中心</a>
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 新手教程</a>
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 任务指南</a>
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 社区论坛</a>
          <a href="#" class="footer-link"><i class="fas fa-chevron-right"></i> 开发文档</a>
        </div>
      </div>

      <!-- 联系信息区域 -->
      <div class="footer-section contact-section">
        <h4 class="section-title">联系我们</h4>
        <div class="vertical-links contact-links">
          <a href="mailto:contact@campusguild.com" class="footer-link"><i class="fas fa-envelope"></i> contact@campusguild.com</a>
          <a href="tel:+8613888888888" class="footer-link"><i class="fas fa-phone"></i> +86 138 8888 8888</a>
          <a href="#" class="footer-link"><i class="fas fa-map-marker-alt"></i> 北京市海淀区学院路</a>
          <a href="#" class="footer-link"><i class="fas fa-comments"></i> 在线客服</a>
        </div>
      </div>
    </div>

    <div class="copyright">
      © 2023 校园冒险者公会. 保留所有权利 | 设计：高端UI团队
    </div>
  </footer>
</template>

<script>
import {defineComponent} from 'vue'

export default defineComponent({
  name: 'Footer'
})
</script>

<style scoped>
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 40px;
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.02);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.brand-section {
  max-width: 280px;
}

.contact-section {
  max-width: 280px;
}

.footer-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  color: white;
  position: relative;
  padding-bottom: 10px;
  margin: 0 0 15px 0;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #d4af37;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: white;
  position: relative;
  padding-bottom: 8px;
  margin: 0 0 15px 0;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #d4af37;
}

.footer-desc {
  color: #a1a8b8;
  line-height: 1.7;
  margin: 0 0 20px 0;
  font-size: 14px;
}

/* 纵向链接样式 */
.vertical-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #a1a8b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 6px 0;
  border-radius: 4px;
}

.footer-link:hover {
  color: #d4af37;
  transform: translateX(5px);
}

.footer-link i {
  font-size: 12px;
  width: 16px;
  text-align: center;
}

/* 联系信息特殊样式 */
.contact-links .footer-link {
  align-items: flex-start;
}

.contact-links .footer-link i {
  margin-top: 2px;
}

/* 社交媒体链接样式 */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #a1a8b8;
  text-decoration: none;
}

.social-link:hover {
  background: #d4af37;
  color: #1a2a4d;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a8b8;
  font-size: 14px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 40px 20px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .footer-content {
    gap: 30px;
  }

  .footer-section {
    min-width: 180px;
  }

  .brand-section {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-section {
    min-width: 100%;
    text-align: center;
  }

  .brand-section,
  .contact-section {
    max-width: 100%;
  }

  .footer-title::after,
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .vertical-links {
    align-items: center;
  }

  .footer-link {
    justify-content: center;
  }

  .contact-links .footer-link {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 0 30px;
  }

  .footer-content {
    gap: 30px;
  }

  .footer-title {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .footer-link {
    font-size: 13px;
  }

  .social-links {
    justify-content: center;
  }
}
</style>